(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/order/detail" ], {
    "2a5d": function(e, t, r) {},
    6441: function(e, t, r) {
        r.r(t);
        var o, n = r("6618"), i = r("78e6");
        for (o in i) "default" !== o && function(e) {
            r.d(t, e, function() {
                return i[e];
            });
        }(o);
        r("6df5");
        var a = r("f0c5"), n = Object(a.a)(i.default, n.b, n.c, !1, null, null, null, !1, n.a, void 0);
        t.default = n.exports;
    },
    6618: function(e, t, r) {
        r.d(t, "b", function() {
            return n;
        }), r.d(t, "c", function() {
            return i;
        }), r.d(t, "a", function() {
            return o;
        });
        var o = {
            shoproMiniCard: function() {
                return r.e("components/shopro-mini-card/shopro-mini-card").then(r.bind(null, "e6d5"));
            }
        }, n = function() {
            var t = this;
            t.$createElement;
            t._self._c, t._isMounted || (t.e0 = function(e) {
                return t.$tools.callPhone(13985269546);
            });
        }, i = [];
    },
    "6df5": function(e, t, r) {
        var o = r("2a5d");
        r.n(o).a;
    },
    "78e6": function(e, t, r) {
        r.r(t);
        var o, n = r("90c6"), i = r.n(n);
        for (o in n) "default" !== o && function(e) {
            r.d(t, e, function() {
                return n[e];
            });
        }(o);
        t.default = i.a;
    },
    "90c6": function(e, r, o) {
        (function(t) {
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.default = void 0;
            var e = {
                components: {
                    shoproMiniCard: function() {
                        o.e("components/shopro-mini-card/shopro-mini-card").then(function() {
                            return resolve(o("e6d5"));
                        }.bind(null, o)).catch(o.oe);
                    }
                },
                data: function() {
                    return {
                        time: 0,
                        orderDetail: {},
                        orderStatus: {
                            "-2": "已关闭",
                            "-1": "已取消",
                            0: "未付款",
                            1: "已付款",
                            2: "已完成"
                        }
                    };
                },
                onShow: function() {
                    this.getOrderDetail();
                },
                onLoad: function() {
                    this.orderType = this.$Route.query.orderType;
                },
                computed: {
                    allNum: function() {
                        if (this.orderDetail.item) {
                            var e = this.orderDetail.item, t = 0;
                            return e.forEach(function(e) {
                                t += e.goods_num;
                            }), t;
                        }
                    }
                },
                methods: {
                    jump: function(e, t) {
                        this.$Router.push({
                            path: e,
                            query: t
                        });
                    },
                    getOrderDetail: function() {
                        var t = this;
                        "goods" == this.orderType ? t.$api("order.order_detail", {
                            order_no: t.$Route.query.order_no
                        }).then(function(e) {
                            0 === e.errno && (t.orderDetail = e.data.order, e = new Date(1e3 * e.data.createtime), 
                            t.orderDetail.createtime = t.$tools.dateFormat("YYYY-mm-dd HH:MM", e));
                        }) : "score" == this.orderType && t.$api("order.order_detail", {
                            order_no: t.$Route.query.order_no,
                            m: "wk_mall_plugin_jfsc"
                        }).then(function(e) {
                            0 === e.errno && (t.orderDetail = e.data.order, e = new Date(1e3 * e.data.createtime), 
                            t.orderDetail.createtime = t.$tools.dateFormat("YYYY-mm-dd HH:MM", e));
                        });
                    },
                    onCopy: function(e) {
                        t.setClipboardData({
                            data: e,
                            success: function(e) {},
                            fail: function(e) {},
                            complete: function(e) {}
                        });
                    },
                    onConfirm: function(e, t) {
                        var r = this;
                        r.$api("order.confirm", {
                            id: e,
                            order_item_id: t
                        }).then(function(e) {
                            1 === e.errno && r.getOrderDetail();
                        });
                    },
                    onRefund: function(e, t) {
                        var r = this, o = this;
                        o.$api("order.refund", {
                            id: e,
                            order_item_id: t
                        }).then(function(e) {
                            1 === e.errno && (o.$tools.toast("申请退款成功"), o.getOrderDetail(), r.$store.dispatch("getMessageIds", "aftersale"));
                        });
                    },
                    onAftersale: function(e, t) {
                        var r = this;
                        r.$api("order.aftersale", {
                            id: e,
                            order_item_id: t
                        }).then(function(e) {
                            1 === e.errno && (r.$tools.toast("申请售后成功"), r.getOrderDetail());
                        });
                    },
                    onCancel: function(e) {
                        var t = this;
                        t.$api("order.cancel", {
                            id: e
                        }).then(function(e) {
                            1 === e.errno && t.$Router.back();
                        });
                    },
                    onPay: function(e) {
                        t.navigateTo({
                            url: "/pages/order/payment/method?id=".concat(e)
                        });
                    },
                    onComment: function(e, t) {
                        this.jump("/pages/order/add-comment", {
                            orderId: e,
                            ordrderItemId: t
                        });
                    },
                    checkExpress: function(e, t) {
                        this.jump("/pages/order/express", {
                            orderId: e,
                            ordrderItemId: t
                        });
                    }
                }
            };
            r.default = e;
        }).call(this, o("543d").default);
    },
    eab2: function(e, t, o) {
        (function(e) {
            o("767a"), r(o("66fd"));
            var t = r(o("6441"));
            function r(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, e(t.default);
        }).call(this, o("543d").createPage);
    }
}, [ [ "eab2", "common/runtime", "common/vendor" ] ] ]);